package wdt_qf.entity.wdt;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class WdtHttpResult<T> implements Serializable {

    /**
     * response : {"errorcode":0,"message":"ok","stockout_list":[],"total_count":0}
     */

    @JSONField(name = "response")
    private ResponseBean response;

    public ResponseBean getResponse() {
        return response;
    }

    public void setResponse(ResponseBean response) {
        this.response = response;
    }

    public static class ResponseBean {
        /**
         * errorcode : 0
         * message : ok
         * stockout_list : []
         * total_count : 0
         */

        @JSONField(name = "errorcode")
        private int errorcode;
        @JSONField(name = "message")
        private String message;
        @JSONField(name = "total_count")
        private int totalCount;
        @JSONField(name = "stockout_list")
        private List<?> stockoutList;

        public int getErrorcode() {
            return errorcode;
        }

        public void setErrorcode(int errorcode) {
            this.errorcode = errorcode;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public int getTotalCount() {
            return totalCount;
        }

        public void setTotalCount(int totalCount) {
            this.totalCount = totalCount;
        }

        public List<?> getStockoutList() {
            return stockoutList;
        }

        public void setStockoutList(List<?> stockoutList) {
            this.stockoutList = stockoutList;
        }
    }
}
